<?php
$conn = oci_connect("gaurav", "gaurav", "xe"); 
$stmt = oci_parse($conn, "select Mesg from Messages"); 
 
oci_execute($stmt, OCI_DEFAULT); 
 
while ($res = oci_fetch_row($stmt)) 
{ 
echo "Mesg: ".$res[0];
}
?>